package com.hx.er.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.hx.er.bean.base.CityBean;
import com.hx.er.bean.base.CountryBean;
import com.hx.er.bean.base.DistrictBean;
import com.hx.er.bean.base.StreetBean;
import com.hx.er.bean.detail.CityDetailBean;
import com.hx.er.bean.detail.DistrictDetailBean;
import com.hx.er.bean.detail.StreetDetailBean;
import com.hx.er.dao.ILocationDao;
import com.hx.er.mapper.ILocationMapper;

public class LocationDaoImpl implements ILocationDao {
	@Autowired
	private ILocationMapper locationMapper;

	@Override
	public List<CountryBean> getCountryList(Map<String, Object> conditions) {
		return this.locationMapper.getCountryList(conditions);
	}

	@Override
	public void insertCountryWithoutId(CountryBean countryBean) {
		this.locationMapper.insertCountryWithoutId(countryBean);
	}

	@Override
	public void insertCityWithoutId(CityBean cityBean) {
		this.insertCityWithoutId(cityBean);
	}

	@Override
	public void insertStreetWithoutId(StreetBean streetBean) {
		this.locationMapper.insertStreetWithoutId(streetBean);
	}

	@Override
	public List<CityDetailBean> getCityDetailList(Map<String, Object> conditions) {
		return this.locationMapper.getCityDetailList(conditions);
	}

	@Override
	public List<DistrictDetailBean> getDistrictDetailList(Map<String, Object> conditions) {
		return this.locationMapper.getDistrictDetailList(conditions);
	}

	@Override
	public void insertDistrictWithoutId(DistrictBean districtBean) {
		this.locationMapper.insertDistrictWithoutId(districtBean);
	}

	@Override
	public List<CityBean> getCityList(Map<String, Object> conditions) {
		return this.locationMapper.getCityList(conditions);
	}

	@Override
	public List<StreetDetailBean> getStreetDetailList(Map<String, Object> conditions) {
		return this.locationMapper.getStreetDetailList(conditions);
	}

	@Override
	public int getCityDetailCount(Map<String, Object> conditions) {
		return this.locationMapper.getCityDetailCount(conditions);
	}

	@Override
	public CityDetailBean getCityDetailById(long cityId) {
		return this.locationMapper.getCityDetailById(cityId);
	}

	@Override
	public int checkCityBean(CityBean cityBean) {
		return this.locationMapper.checkCityBean(cityBean);
	}

	@Override
	public int updateCity(CityBean cityBean) {
		return this.locationMapper.updateCity(cityBean);
	}

	@Override
	public int deleteCity(CityBean cityBean) {
		return this.locationMapper.deleteCity(cityBean);
	}

	@Override
	public int reviveCity(CityBean cityBean) {
		return this.locationMapper.reviveCity(cityBean);
	}

	@Override
	public CountryBean getCountryById(long countryId) {
		return this.locationMapper.getCountryById(countryId);
	}

	@Override
	public int getDistrictDetailCount(Map<String, Object> conditions) {
		return this.locationMapper.getDistrictDetailCount(conditions);
	}

	@Override
	public CityBean getCityById(long cityId) {
		return this.locationMapper.getCityById(cityId);
	}

	@Override
	public int checkDistrictBean(DistrictBean districtBean) {
		return this.locationMapper.checkDistrictBean(districtBean);
	}

	@Override
	public DistrictDetailBean getDistrictDetailById(long districtId) {
		return this.locationMapper.getDistrictDetailById(districtId);
	}

	@Override
	public int updateDistrict(DistrictBean districtBean) {
		return this.locationMapper.updateDistrict(districtBean);
	}

	@Override
	public int deleteDistrict(DistrictBean districtBean) {
		return this.locationMapper.deleteDistrict(districtBean);
	}

	@Override
	public int reviveDistrict(DistrictBean districtBean) {
		return this.locationMapper.reviveDistrict(districtBean);
	}

	@Override
	public int getStreetDetailCount(Map<String, Object> conditions) {
		return this.locationMapper.getCityDetailCount(conditions);
	}

	@Override
	public StreetDetailBean getStreetDetailById(long streetId) {
		return this.locationMapper.getStreetDetailById(streetId);
	}

	@Override
	public int checkStreetBean(StreetBean streetBean) {
		return this.locationMapper.checkStreetBean(streetBean);
	}

	@Override
	public int updateStreet(StreetBean streetBean) {
		return this.locationMapper.updateStreet(streetBean);
	}

	@Override
	public int deleteStreet(StreetBean streetBean) {
		return this.locationMapper.deleteStreet(streetBean);
	}

	@Override
	public int reviveStreet(StreetBean streetBean) {
		return this.locationMapper.reviveStreet(streetBean);
	}

}
